<?php
if($access_control != "924y39c9vns8r73"){ header("location:../"); }
if($_SESSION["sgm_master"] != 1){
    header("location:?pag=");
}
include_once "controle/setor.php";
?>
                
                <form action="" method="post" class="formulario">
                    <fieldset>
                        <legend>Setor</legend>
                        <div>
                            <label class="campos"><span>*</span> Nome: </label>
                            <input type='text' value='<?php echo $setor->get_nome(); ?>' name='nome' id='nome1' class=''>
                            <?php if($msg_erro["nome"] != ''){ echo "<div class='erro'>".$msg_erro["nome"]."</div>";}?>
                        </div>
                        <div id='dv_descri'>
                            <label class="campos">Descrição: </label>
                            <input type='text' value='<?php echo $setor->get_descri(); ?>' name='descri' id='descri'>
                            <?php if($msg_erro["descri"] != ''){ echo "<div class='erro'>".$msg_erro["descri"]."</div>";}?>
                        </div>
                    </fieldset>
                    
                    <button type='submit' name='btn_salvar' value='Salvar' class="botao">Salvar</button>
                </form>